package service;

import pojo.User;

import java.util.List;

public interface UserService {
    List<User> findAll(User condition, int offset, int pageSize);
    int addUser(User user);

    int deleteUser(int id);



    User findUserById(int id);

    int updateUser(User user);

    int count(User condition);

    boolean login(User user);

    int findUserByName(String username);
}
